// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_imapfolders
// * CreateDate    : 2014-06-05 18:29:58
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:58
// * LastChanger   : 2014-06-05 18:29:58
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmImapfoldersEntity : EntityBase
    {
        public HmImapfoldersTable TableSchema
        {
            get
            {
                return HmImapfoldersTable.Current;
            }
		}
		
		public HmImapfoldersEntity()
        {

        }
		
		public HmImapfoldersEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Folderid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderid"]));
			this.Folderaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderaccountid"]));
			this.Folderparentid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderparentid"]));
			this.Foldername = Convert.ToString(CommonFunctions.ToObject(dr["foldername"]));
			this.Folderissubscribed = Convert.ToByte(CommonFunctions.ToObject(dr["folderissubscribed"]));
			this.Foldercreationtime = Convert.ToDateTime(CommonFunctions.ToObject(dr["foldercreationtime"]));
			this.Foldercurrentuid = Convert.ToInt64(CommonFunctions.ToObject(dr["foldercurrentuid"]));
        }
		
		public HmImapfoldersEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Folderid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderid"]));
			this.Folderaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderaccountid"]));
			this.Folderparentid = Convert.ToInt32(CommonFunctions.ToObject(dr["folderparentid"]));
			this.Foldername = Convert.ToString(CommonFunctions.ToObject(dr["foldername"]));
			this.Folderissubscribed = Convert.ToByte(CommonFunctions.ToObject(dr["folderissubscribed"]));
			this.Foldercreationtime = Convert.ToDateTime(CommonFunctions.ToObject(dr["foldercreationtime"]));
			this.Foldercurrentuid = Convert.ToInt64(CommonFunctions.ToObject(dr["foldercurrentuid"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmImapfoldersTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Folderid
        {
            get { return Convert.ToInt32(GetData(HmImapfoldersTable.C_folderid)); }
            set { SetData(HmImapfoldersTable.C_folderid, value); }
        }
		
        [DataMember]
        public int Folderaccountid
        {
            get { return Convert.ToInt32(GetData(HmImapfoldersTable.C_folderaccountid)); }
            set { SetData(HmImapfoldersTable.C_folderaccountid, value); }
        }
		
        [DataMember]
        public int Folderparentid
        {
            get { return Convert.ToInt32(GetData(HmImapfoldersTable.C_folderparentid)); }
            set { SetData(HmImapfoldersTable.C_folderparentid, value); }
        }
		
        [DataMember]
        public string Foldername
        {
            get { return Convert.ToString(GetData(HmImapfoldersTable.C_foldername)); }
            set { SetData(HmImapfoldersTable.C_foldername, value); }
        }
		
        [DataMember]
        public byte Folderissubscribed
        {
            get { return Convert.ToByte(GetData(HmImapfoldersTable.C_folderissubscribed)); }
            set { SetData(HmImapfoldersTable.C_folderissubscribed, value); }
        }
		
        [DataMember]
        public DateTime Foldercreationtime
        {
            get { return Convert.ToDateTime(GetData(HmImapfoldersTable.C_foldercreationtime)); }
            set { SetData(HmImapfoldersTable.C_foldercreationtime, value); }
        }
		
        [DataMember]
        public long Foldercurrentuid
        {
            get { return Convert.ToInt64(GetData(HmImapfoldersTable.C_foldercurrentuid)); }
            set { SetData(HmImapfoldersTable.C_foldercurrentuid, value); }
        }
		
		#endregion
	}
	
	
}	

